package kz.edu.sdu.itech.qms;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import kz.edu.sdu.itech.qms.util.Logger;

public class Main {
   static Logger log = new Logger(Main.class);
   static QMS q = new QMS();

   public static void main(String[] args) throws Exception {
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      log.debug("START");
      while (!QMSProps.DONE) {
         try {
            String c = in.readLine();
            if (c.equals("q")) {
               QMSProps.DONE = true;
               // q.stopGeneration();
            } else if (c.equals("g")) {
               q.generateClient();
            }
         } catch (Exception e) {
            e.printStackTrace();
         }
      }
      log.debug("TOTAL QUIT!");
   }
}
